package com.ruoyi.biz.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 区域对象 biz_area
 * 
 * @author Fei.Cong
 * @date 2023-05-29
 */
@TableName(value = "biz_area")
public class BizArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 区划id */
    @Excel(name = "区划id")
    private Long areaId;

    /** 父区划id */
    @Excel(name = "父区划id")
    private Long parentId;

    /** 区划名称 */
    @Excel(name = "区划名称")
    private String name;

    /** 省级区划名称 */
    @Excel(name = "省级区划名称")
    private String provinceName;

    /** 省级区划id */
    @Excel(name = "省级区划id")
    private Long provinceId;

    /** 市级区划名称 */
    @Excel(name = "市级区划名称")
    private String cityName;

    /** 市级区划名称 */
    @Excel(name = "市级区划名称")
    private Long cityId;

    /** 区县级区划名称 */
    @Excel(name = "区县级区划名称")
    private String districtName;

    /** 区县级区划id */
    @Excel(name = "区县级区划id")
    private Long districtId;

    /** 序号 */
    @Excel(name = "序号")
    private Integer sortOrder;

    /** 层级1省2市3区县 */
    @Excel(name = "层级1省2市3区县")
    private Integer leveln;

    /** 类型 */
    @Excel(name = "类型")
    private Integer type;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private Integer deleteFlag;

    /** 类型 */
    @Excel(name = "类型")
    private Integer isParent;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private Integer valid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setProvinceName(String provinceName) 
    {
        this.provinceName = provinceName;
    }

    public String getProvinceName() 
    {
        return provinceName;
    }
    public void setProvinceId(Long provinceId) 
    {
        this.provinceId = provinceId;
    }

    public Long getProvinceId() 
    {
        return provinceId;
    }
    public void setCityName(String cityName) 
    {
        this.cityName = cityName;
    }

    public String getCityName() 
    {
        return cityName;
    }
    public void setCityId(Long cityId) 
    {
        this.cityId = cityId;
    }

    public Long getCityId() 
    {
        return cityId;
    }
    public void setDistrictName(String districtName) 
    {
        this.districtName = districtName;
    }

    public String getDistrictName() 
    {
        return districtName;
    }
    public void setDistrictId(Long districtId) 
    {
        this.districtId = districtId;
    }

    public Long getDistrictId() 
    {
        return districtId;
    }
    public void setSortOrder(Integer sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Integer getSortOrder() 
    {
        return sortOrder;
    }
    public void setLeveln(Integer leveln) 
    {
        this.leveln = leveln;
    }

    public Integer getLeveln() 
    {
        return leveln;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setDeleteFlag(Integer deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Integer getDeleteFlag() 
    {
        return deleteFlag;
    }
    public void setIsParent(Integer isParent) 
    {
        this.isParent = isParent;
    }

    public Integer getIsParent() 
    {
        return isParent;
    }
    public void setValid(Integer valid) 
    {
        this.valid = valid;
    }

    public Integer getValid() 
    {
        return valid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("areaId", getAreaId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("provinceName", getProvinceName())
            .append("provinceId", getProvinceId())
            .append("cityName", getCityName())
            .append("cityId", getCityId())
            .append("districtName", getDistrictName())
            .append("districtId", getDistrictId())
            .append("sortOrder", getSortOrder())
            .append("leveln", getLeveln())
            .append("type", getType())
            .append("deleteFlag", getDeleteFlag())
            .append("isParent", getIsParent())
            .append("remark", getRemark())
            .append("valid", getValid())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
